package com.camelot.ccr.system.persistence;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * <pre>
 * 车手
 * </pre>
 * @author Niu Lina
 * @version V0.1, 2014-1-7 上午10:45:34
 */
@Entity
@Table(name = "t_team")
public class Team implements java.io.Serializable {

	private static final long serialVersionUID = -1506581774705067784L;
    /**
     * 主键id
     */
    @Id
    @Column(name = "id", unique = true, nullable = false)
    @GenericGenerator(name="idGenerator", strategy="uuid") //这个是hibernate的注解
    @GeneratedValue(generator="idGenerator") //使用uuid的生成策略
	private String id;
    /**
     * 车队名称
     */
    @Column(name = "teamName", length = 120)
	private String teamName;
    /**
     * 总部地址
     */
    @Column(name = "address", length = 200)
	private String address;
    /**
     * 首次参赛时间
     */
    @Column(name = "firstMatchTime")
	private Date firstMatchTime;
    /**
     * 参赛次数
     */
    @Column(name = "matchTime")
	private int matchTime;
    /**
     * 车队冠军
     */
    @Column(name = "teamChampion")
	private int teamChampion;
    /**
     * 车手冠军
     */
    @Column(name = "driverChampion")
	private int driverChampion;
    /**
     * 积分
     */
    @Column(name = "point")
	private Double point;
    
    /**
     * 第一车手
     */
    @Column(name = "firstDriver", length = 100)
	private String firstDriver;
    /**
     * 第二车手
     */
    @Column(name = "secondDriver", length = 100)
	private String secondDriver;
    /**
     * 试车手
     */
    @Column(name = "testDriver", length = 100)
	private String testDriver;
    /**
     * 官方网址
     */
    @Column(name = "teamUrl", length = 100)
	private String teamUrl;
    /**
     * 车队图标1
     */
    @Column(name = "teamPhotoUp", length = 500)
	private String teamPhotoUp;
    
    /**
     * 车队图标2
     */
    @Column(name = "teamPhotoDown", length = 500)
	private String teamPhotoDown;
    
    /**
     * 创建时间
     */
    @Column(name = "createTime")
	private Date createTime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTeamName() {
		return teamName;
	}

	public void setTeamName(String teamName) {
		this.teamName = teamName;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Date getFirstMatchTime() {
		return firstMatchTime;
	}

	public void setFirstMatchTime(Date firstMatchTime) {
		this.firstMatchTime = firstMatchTime;
	}

	public int getMatchTime() {
		return matchTime;
	}

	public void setMatchTime(int matchTime) {
		this.matchTime = matchTime;
	}

	public int getTeamChampion() {
		return teamChampion;
	}

	public void setTeamChampion(int teamChampion) {
		this.teamChampion = teamChampion;
	}

	public int getDriverChampion() {
		return driverChampion;
	}

	public void setDriverChampion(int driverChampion) {
		this.driverChampion = driverChampion;
	}

	public Double getPoint() {
		return point;
	}

	public void setPoint(Double point) {
		this.point = point;
	}

	public String getFirstDriver() {
		return firstDriver;
	}

	public void setFirstDriver(String firstDriver) {
		this.firstDriver = firstDriver;
	}

	public String getSecondDriver() {
		return secondDriver;
	}

	public void setSecondDriver(String secondDriver) {
		this.secondDriver = secondDriver;
	}

	public String getTestDriver() {
		return testDriver;
	}

	public void setTestDriver(String testDriver) {
		this.testDriver = testDriver;
	}

	public String getTeamUrl() {
		return teamUrl;
	}

	public void setTeamUrl(String teamUrl) {
		this.teamUrl = teamUrl;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getTeamPhotoUp() {
		return teamPhotoUp;
	}

	public void setTeamPhotoUp(String teamPhotoUp) {
		this.teamPhotoUp = teamPhotoUp;
	}

	public String getTeamPhotoDown() {
		return teamPhotoDown;
	}

	public void setTeamPhotoDown(String teamPhotoDown) {
		this.teamPhotoDown = teamPhotoDown;
	}

}